package com.ita.util;

import java.net.InetAddress;
import java.util.Properties;

public class Constant {

	private static Properties prop = PropertiesUtil.getProp();



	public static final String NAMEERROR = "Username wrong";
	public static final String PWDERROR = "Passord wrong";
	public static final String NAMEEXIST = "Username exist";
	// public static MerchantDto meDto = null;
	public static String REASON = null;

	// DEC
	public static final String DES_ALGORITHM = "DES";
	public static final String CIPHER_ALGORITHM = "DES/ECB/NoPadding";

	// MD5
	public static final String MD5_ALGORITHM = "MD5";

	public static final String RSA_ALGORITHM = "RSA";
	public static final String SIGNATURE_ALGORITHM = "MD5withRSA";

	public static final String PUBLIC_KEY = "RSAPublicKey";
	public static final String PRIVATE_KEY = "RSAPrivateKey";

	public static final int SUCEESS_CODE = 200;
	public static final int FAIL_CODE = 500;
	public static final String SUCCESS_MESSAGE = "SUCCESS";

	public static final String IDCARD_PATH = prop.getProperty("IDCARD_PATH");
	public static final String IMG_PATH = prop.getProperty("IMG_PATH");
	public static final String FOOD_PATH = prop.getProperty("FOOD_PATH");
	public static final String IDCARD = prop.getProperty("IDCARD");
	public static final String IMG = prop.getProperty("IMG");
	public static final String FOOD = prop.getProperty("FOOD");
	public static final String FILE_PORT = ":"+prop.getProperty("FILE_PORT")+"/";
	
	public static final String CURRENT_MERCHANT = "m";
	public static final String CLIENT_ID = "mid_ws";

	public static final int SUCCESS = 200; // 成功
	public static final int FAIL = 404; // 失败
	public static final int EXCEPTION = 500; // 异常
	
	public static final int DEFAULT =0;
	public static final int BLOCK = 1;
	
	public static final int ORDER_UNTREATED = 0; 
	public static final int ORDER_RECEIVE = 1; 
	public static final int ORDER_REFUSE = 2; 
	public static final int ORDER_DELIVERY = 3;
	public static final int ORDER_FINISH = 4;
	public static final int ORDER_ASSESS = 5;


	public static final String ORDERCOMING = "1";
	public static final String ASSESSCOMING = "2";



	

}
